package com.sys.mapper;

import com.sys.model.Teacher;

import java.util.List;
import java.util.Map;

public interface TeacherMapper {

    /*删除教师信息*/
    int deleteByPrimaryKey(Integer id);

    int insert(Teacher record);

    /*添加教师信息*/
    int insertSelective(Teacher record);

    /*查询教师信息*/
    Teacher selectByPrimaryKey(Integer id);

    /*修改教师信息*/
    int updateByPrimaryKeySelective(Teacher record);

    int updateByPrimaryKey(Teacher record);

    /*查询全部教师信息*/
    List<Teacher> getTeacherList(Map requestparamMap);

    /*根据idcard查询教师信息*/
    Teacher getTeacherByIdcard(int idcard);

    /*查询最后一条教师信息 账号*/
    Teacher getTeacherByLast();
}